import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import Layout from '@/components/Layout.vue';
import frameIn from '@/router/frameIn';
import frameOut from '@/router/frameOut';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: Layout,
    redirect: '/index',
    children: [...frameIn],
  },
  ...frameOut,
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
